/* 
 * File:   Warning.cpp
 * Author: Ben
 * 
 * Created on April 30, 2013, 6:53 PM
 */

#include "Warning.h"
#include <string>
using namespace logger;

const Warning Warning::kArgumentIncludedTwice(new std::wstring(L"Argument included twice"));

Warning::Warning(const std::wstring *message) : mMessage(message) {
}

Warning::Warning(const Warning& orig) : mMessage(new std::wstring(*orig.mMessage)) {
}

Warning::~Warning() {
}

void Warning::log(std::wostream &stream) const {
    stream << "Warning: " << *mMessage << std::endl;
}

 int Warning::getLevel() const {
    return 1;
}

